package java20241112;

class Computer {
    private String cpu;
    String memory;
    String screen;
  public String brand;
    public Computer(String cpu,String memory,String screen,String brand)
    {
        this.cpu = cpu;
        this.memory = memory;
        this.screen = screen;
        this.brand = brand;
    }
    public void Boot(){
        System.out.println("开机");
    }
    public void PowerOff(){
        System.out.println("关机");
    }
    public void SurfInternet(){
        System.out.println("上网");
    }
}
class TastComputer{
    public static void main(String[] args) {
        Computer c = new Computer("i7","16G","13*14","小天鹅");
        System.out.println(c.brand);
        System.out.println(c.screen);
    }
}

